package com.jdbc;

// tableName：stu_account
public class StuInfo {
    // 学号  必须有
    private String stuID;
    private String clsID;
    // 真实姓名  必须有
    private String userName;
    // 职务 必须有 默认"无"
    private String post;
    // 注册时间  必须有
    private String registerTime;
    private String nickName;
    private String sex;
    private String telNum;
    private String birthday;

    // 密码  必须有
    private String password;

    public String getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(String registerTime) {
        this.registerTime = registerTime;
    }

    public String getPost() {
        return post;
    }

    public void setPost(String post) {
        this.post = post;
    }

    public String getClsID() {
        if (clsID == null)
            return "还未加入任何班级噢！";
        return clsID;
    }

    public void setClsID(String clsID) {
        this.clsID = clsID;
    }

    public String getTelNum() {
        if (telNum == null)
            return "还未填写手机号噢！";
        return telNum;
    }

    public void setTelNum(String telNum) {
        this.telNum = telNum;
    }

    public String getNickName() {
        if (nickName == null || nickName.equals(""))
            return userName;
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getBirthday() {
        if (birthday == null)
            return null;
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getStuID() {
        return stuID;
    }

    public void setStuID(String id) {
        this.stuID = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getSex() {
        if (sex == null)
            return "保密！";
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

}